<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>轮播图</title>
    <style>
        .paper-item{
            margin: 0px auto;
            width: 800px;
            height: 800px;
            text-align: center;
            position: relative;
            border: 1px solid red;
        }
        #prev{
            position: absolute;
            top: 50%;
        }
        #next{
            position: absolute;
            right: 0px;
            top: 50%;
        }
    </style>
</head>
<body>
<div class="paper-item">
    <button id="prev" onclick="getPrev()">上一张</button>
    <img src="../小米商城/img/paper1" alt="">
    <button id="next" onclick="getNext()">下一张</button>
</div>
</body>
</html>